计算机与现代化 ›› 2012, Vol. 1 ›› Issue (6): 221-222.doi: 10.3969/j.issn.1006-2475.2012.06.059

• 应用与开发 • 上一篇    

一种对GDI+绘制图形的选择方法

乔 智   

  1. 连云港电子口岸信息发展有限公司,江苏 连云港 222042
  • 收稿日期:2012-04-17 修回日期:1900-01-01 出版日期:2012-06-14 发布日期:2012-06-14

A Selection Method for GDI+ Drawing

QIAO Zhi   

  1. Lianyungang E-port Information Development Co., Ltd., Lianyungang 222042, China
  • Received:2012-04-17 Revised:1900-01-01 Online:2012-06-14 Published:2012-06-14

摘要: 在Visual C#.NET编程环境中使用GDI+绘制的图形,如直线、矩形、文本等都不是类的实例,没有自己的属性和方法,导致很难对已绘制的图形进行选择并做下一步的修改等应用。本文描述如何使用GDI+绘制图形并实现对已绘制图形的选择。

关键词: C#, GDI+, 自定义图形, 选择

Abstract: In the Visual C#.NET programming environment using GDI+ graphics, such as straight line, rectangle, text and so on, all is not an instance of the class, does not have its own properties and methods, leads to very difficult to have the drawing to choose and do the next revision and application. This paper describes how to use GDI+ graphics rendering to realize the plot graph selection.

Key words: C#, GDI+, custom graphics, selection

中图分类号: